package com.agiantii.ablog.enums;

public enum SearchTypeEnum {
    TITLE,
    CONTENT,
    AUTHOR;
    
    public static boolean isValid(String type) {
        try {
            SearchTypeEnum.valueOf(type.toUpperCase());
            return true;
        } catch (IllegalArgumentException e) {
            return false;
        }
    }
} 